package com.orm.handler;

import java.sql.*;

public class SqlTimeTypeHandler extends BaseTypeHandler<Time> {
	
	@Override
	public void setNotNullParameter(PreparedStatement ps, int i, Time parameter, JDBCType jdbcType) throws SQLException {
		ps.setTime(i,parameter);
	}
	
	@Override
	public Time getNullableResult(ResultSet rs, String columnName) throws SQLException {
		return rs.getTime(columnName);
	}
	
	@Override
	public Time getNullableResult(ResultSet rs, int columnIndex) throws SQLException {
		return rs.getTime(columnIndex);
	}
}
